Skip to main content

ObjectDetectorHitData

Members

A type that demonstrates the fact that what type the object detector returns depends on what it hits. It is one (not all) of the following types:


Subtype A

It is of the type ObjectDetectorHitNothing.


Subtype B

It is of the type ObjectDetectorHitTerrain.


Subtype C

It is of the type ObjectDetectorHitObject.

Luau Type

This is the luau type for ObjectDetectorHitData. It may help clear up mistranslations from the raw data to the wiki page (as it is an automatic process).

export type ObjectDetectorHitData = ObjectDetectorHitNothing | ObjectDetectorHitTerrain | ObjectDetectorHitObject